package com.regent.central.bill.repository.storehouse;

import com.regent.central.bill.core.storehouse.StockInventoryItemSku;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface StockInventoryItemSkuMapper extends Mapper<StockInventoryItemSku> {
    /**
     * 获取该时间后撤销和未调整的盘点id
     * @param goodsMap
     * @return
     */
    List<String> selectNoAdjustInventoryId(@Param("goodsMap") Map goodsMap);

    /**
     * 更新账面库存
     * @param skuId
     * @param nearInventoryId
     * @param stock
     */
    void updateBookStock(@Param("skuId") String skuId, @Param("inventoryId") String nearInventoryId, @Param("stock") BigDecimal stock);
}